import { request, config } from 'utils'

const { api } = config
const { getAllMessage,getNewMessage,readOneMessage,readAllMessage } = api

export async function getAllMessage1 (params) {
    return request({
        url:getAllMessage,
        method:"post",
        data:params
    })
}

export async function getNewMessage1 (params) {
    return request({
        url:getNewMessage,
        method:"post",
        data:params
    })
}

export async function readOneMessage1 (params) {
    return request({
        url:readOneMessage,
        method:"post",
        data:params
    })
}

export async function readAllMessage1 (params) {
    return request({
        url:readAllMessage,
        method:"post",
        data:params
    })

}